-- <action itemid=2549 event=script value=rake.lua/>
--- Rake maked by Kronos aka Hellboy ---
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if itemEx.itemid == 2694 then
		doSendMagicEffect(((toPosition.x ~= CONTAINER_POSITION) and toPosition or getCreaturePosition(cid)), CONST_ME_POFF)
		doTransformItem(item.uid, 2551)
		doRemoveItem(itemEx.uid, 1)
	elseif itemEx.itemid == 1426 then
		doRemoveItem(itemEx.uid)	
		doPlayerAddItem(cid, 2246, 1, true)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
	end
	return true
end